package com.example.springbootdemo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("process_log")  // 当java实体对象与数据库表名不符合的时候，需要通过该属性来指定
public class ProcessLog {

    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("user_id")
    private Integer userId;

    @TableField("class_name")
    private String className;

    @TableField("method_name")
    private String methodName;

    @TableField("process_info")
    private String processInfo;

    @TableField("params_info")
    private String paramsInfo;

    @TableField("create_time")
    private Date createTime;
}
